/*    
 * Copyright (c) 2013 ISoftStone, Inc.
 * All right reserved.
 *
 * 文件名：      Version.java
 * 作者:     Jacky Wang
 * 创建日期： 2013-8-1 上午09:46:54
 * 版本：           
 *
 */
package com.isoftstone.industry.aaa.constants;

/**
 * @author jacky
 */
public enum Version
{
	V_1_0, UNKNOWN;

	public static Version latest()
	{
		return V_1_0;
	}

	public static Version fromMajorMinor(long major, long minor)
	{
		if (major == 1 && minor == 0)
		{
			return V_1_0;
		} else
		{
			return UNKNOWN;
		}
	}

	@Override
	public String toString()
	{
		switch (this)
		{
			case V_1_0:
				return "1.0";
			default:
				return "Unknown";
		}
	}
}
